package com.hsd.znsh.repository;

import com.hsd.znsh.entity.ControlType;
import com.hsd.znsh.entity.Property;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/*
 * @auther: wangjiacai
 *
 * @create: 2018-04-23 11:54:50
 */
public interface PropertyRepository extends JpaRepository<Property,Integer> {

    void deleteByIdIn(List<Integer> ids);

    List<Property> findByIdInOrderById(List<Integer> ids);

    Property findByNameAndIdIn(String name,List<Integer> ids);

}
